package com.liuzihao.cloudLzhPayment.service.impl;

import com.liuzihao.cloudLzhPayment.dao.PaymentDao;
import com.liuzihao.cloudLzhPayment.pojo.Payment;
import com.liuzihao.cloudLzhPayment.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: Liuzihao
 * @Description:
 * @Date Created in 2021-09-21 00:19
 * @Modified By:
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    PaymentDao paymentDao;
    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }

    @Override
    public int savePayment(Payment payment) {
        return paymentDao.savePayment(payment);
    }
}
